@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row">
            @foreach($articles as $oneArticle)
                <a style="display: block;" href="/article/show?id=<?= $oneArticle->id ?>">
                    <span>{{ $oneArticle->title }}</span>
                    <span>{{ $oneArticle->create_at }}</span>
                </a>
            @endforeach
        </div>
        {{ $articles->render() }}
    </div>
@endsection
